﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SF.WebClient.Controllers
{
    public class WindowController : BasicController
    {
        public void ViewWindowCssSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/window/jeasyui.extensions.window.css");
        }

        #region shine 窗口闪动

        public ViewResult ShineDemo()
        {
            return View();
        }

        public PartialViewResult ShineSource()
        {
            return PartialView();
        }

        public void ViewShineSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/window/jeasyui.extensions.window.shine.js");
        }

        public PartialViewResult ShineExplain()
        {
            return PartialView();
        }

        #endregion

        #region autoCenter 自动调整居中

        public ViewResult AutoCenterDemo(bool reloadOnce = false)
        {
            ViewBag.ReloadOnce = reloadOnce;

            return View();
        }

        public PartialViewResult AutoCenterSource()
        {
            return PartialView();
        }

        public void ViewAutoCenterSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/window/jeasyui.extensions.window.autoCenter.js");
        }

        public PartialViewResult AutoCenterExplain()
        {
            return PartialView();
        }

        #endregion

        #region closeOnEsc 按Esc关闭窗口

        public ViewResult CloseOnEscDemo()
        {
            return View();
        }

        public PartialViewResult CloseOnEscSource()
        {
            return PartialView();
        }

        public void ViewCloseOnEscSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/window/jeasyui.extensions.window.closeOnEsc.js");
        }

        public PartialViewResult CloseOnEscExplain()
        {
            return PartialView();
        }

        #endregion

        #region autoRestore 双击自动最大化窗口

        public ViewResult AutoRestoreDemo()
        {
            return View();
        }

        public PartialViewResult AutoRestoreSource()
        {
            return PartialView();
        }

        public void ViewAutoRestoreSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/window/jeasyui.extensions.window.autoRestore.js");
        }

        public PartialViewResult AutoRestoreExplain()
        {
            return PartialView();
        }

        #endregion

        #region cls 修复headerCls无效的bug

        public ViewResult clsDemo(bool loadJs = false)
        {
            ViewBag.LoadJs = loadJs;

            return View();
        }

        public PartialViewResult clsSource()
        {
            return PartialView();
        }

        public void ViewclsSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/window/jeasyui.fixeds.window.cls.js");
        }

        public PartialViewResult clsExplain()
        {
            return PartialView();
        }

        #endregion
	}
}